from lxml import etree
import requests
import os
url = 'https://pic.netbian.com/4kmeinv/index_2.html'
headers = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36'

req = requests.get(url, headers)
print(f'res:>>>{req}{type(req)}')
html = req.content
res = html.decode('gbk')
print(res)
with open('wm/meitu.html', mode='wt', encoding='gbk')as f:
    f.write(res)
# print(f'html:>>>{html}')
# url_list = re.findall('<img src="(.*?)">', html)
# html1 = etree.HTML(html)
# # print(type(html1))
# url_list = html1.xpath('//li/a/img/@src')